import type {userItem} from '@/types/userform'
export type news = {
  newsList: {
    list: newsItem[],
    total: number,
    pageNum: number,
    pageSize: number,
    size: number,
    startRow: number,
    endRoe: number,
    pages: number,
    prePage: number,
    nextPage: number,
    isFirstPage: boolean,
    isLastPage: boolean,
    hasPreviousPage: boolean,
    hasNextPage: boolean,
    navigatePages: number,
    navigatepageNums: Array<number>,
    navigateFirstPage: number,
    navigateLastPage: number
  }
}
export type newsItem = {
  newsId: number,
  title: string,
  author: string,
  releaseTime: string,
  content: string,
  userId: number,
  auditTime: string,
  auditorId: number,
  newsImg: null,
  newsImgArr:string[]
  categoryId: number,
  status: number,
  auditResult: string,
  username:string,
  avatar:string,
  userInfo:string,
  viewCount: number,
  likeCount: number,
  favoriteCount: number,
  clickLike: boolean,
  clickFavorite: boolean
}
//分页参数
export type getnews = {
  categoryId: number,
  page: number,
  pageSize: number
}
//分类数据
export type category = {
  name: string,
  value: number
}
export type auditorDetail={
  news:newsItem[],
  userInfo:userItem
}